home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Computer Shopper 121
/
Computer Shopper 121
/
Computer Shopper 121.iso
/
HomeBus
/
money
/
Money98
/
MONEY98.1
/
SAVAPP.DCR
/
00024_calculateTotal.ls
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1997-10-10
|
384 b
|
14 lines
on calculateTotal
global yvalue, rvalue, ivalue, avalue, tvalue
set n to 0
set tempr to 1.0 + (float(rvalue) / 100)
set tvalue to ivalue
repeat while n < yvalue
set n to n + 1
set tvalue to (tvalue + avalue) * tempr
end repeat
calcDollar(string(integer(tvalue)))
set the text of member "answer" to the result
set the text of member "total" to the result
end